/*
 * MedianVote.java
 *
 * Copyright (C) 2014 Fabian Wenzelmann
 *
 * This file is part of stura_voting.
 *
 * stura_voting is free software: you
 * can redistribute it and/or modify it under the terms of the
 * GNU General Public License as published by the Free Software Foundation,
 * either version 3 of the License, or (at your option) any later version.
 *
 * stura_voting is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
 * Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with stura_voting.
 *
 * If not, see <http://www.gnu.org/licenses/>.
 */
package de.stura.median;

import de.stura.WeightedVoter;

/**
 * This class represents a single median vote.
 */
public class MedianVote extends WeightedVoter {    
    /**
     * The height of the vote.
     */ 
    protected float value;
    
    /**
     * Constructor, for the meaning of the variables see attribute
     * documentation
     */ 
    public MedianVote(String voter, int weight, float value) {
        super(voter, weight);
        this.value = value;
    }
    
    /* Getters and setters */

    public float getValue() {
        return value;
    }
    
    public void setValue(float value) {
        this.value = value;
    }
}
